package cn.lucky.springcloud.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lingpeng.jiang
 * @create 2021-01-27-21:23
 */
@RestController
public class NacosProviderController {

    @Value("${server.port}")
    private String serverPort;


    @GetMapping("/nacos/provider/port")
    public String getServerPort(){
        return serverPort;
    }
}
